<?
//*************************************************************
// System Notifier v1
// Created by White_Devil
// website :: http://devil-nuke-mods.be/
// e-mail  :: arleighesq@gmail.com
// Created :: 8-14-06
//*************************************************************
// Do not modify without permission unless you need to fix it
// for your distabution of nuke!!!
// You May make Language files Only. Please send me a copy
// Of the language you make Thanks..
//*************************************************************

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}

include_once("mainfile.php");
$module_name = "System_Notifier";
get_lang($module_name);
include_once("header.php");

// change this to $index = 1; if you are not using chatserv patch
define('INDEX_FILE', true);
// end change



title("<centeR><b>"._MODTITLE,"</b></center>");

$row = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_sysnote_config WHERE wd_config='noteconfig'"));
$showguest = $row['wd_show_guest'];
$showmember = $row['wd_show_member'];
$showtime = $row['wd_member_time'];
$membertext = $row['wd_member_text'];
$guesttext = $row['wd_guest_text'];


opentable();
if (is_admin($admin)) {
echo "<center><b><u><a href=\"modules.php?name=$module_name&file=noteadmin\">"._ADMINLINKINDEX."</a></u></b></center><br>";
}
echo "<center><b>"._CURMSG."</b></center>";
echo "<hr><center>";
echo wdcleantextnoterestore3($membertext);
echo "</center><hr><br>";
closetable();


opentable();
echo "<center><b>"._CURMSGGUEST."</b></center>";
echo "<hr><center>";
echo wdcleantextnoterestore3($guesttext);
echo "</center><hr><br>";
closetable();



include_once("footer.php");

function wdcleantextnoterestore3($information) {
$information = str_replace("&quot;", "\"", $information);
$information = str_replace("&#039;", "'", $information);
return $information;
}

?>